home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13189 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: mother.usf.edu!suntan!cdiaz
  2. From: "Carlos Diaz (CS)" <cdiaz@eng.usf.edu>
  3. Newsgroups: comp.lang.c
  4. Subject: key input: "hot" keys via standard libraries (unix c)
  5. Date: Thu, 4 Apr 1996 21:25:32 -0500
  6. Organization: University of South Florida
  7. Message-ID: <Pine.SUN.3.92.960404211350.28756B-100000@suntan>
  8. NNTP-Posting-Host: suntan.eng.usf.edu
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11. X-Sender: cdiaz@suntan
  12.  
  13. Hello! Does stdio.h have the capabilities to support the implementation of
  14. "hot" keys? My "hot" key routine is the menu navigator of a loan program
  15. and needs to meet the requirements that make "hot" key what it is:
  16.  1) Must never print to the screen the key pressed.
  17.  2) Must NOT wait for ENTER to be pressed before reading th keystroke.
  18.  3) IF no key has been pressed, the program can do something else
  19. (like update a clock with seconds digits) and then go back and wait for
  20. the key.
  21.  
  22. Thanks a million! Please don't refer me to non standard libraries. This
  23. program has to be as least platform-dependent as possible. The
  24. libraries I have at my disposal are stdio.h, time.h, ctype.h, locale.h,
  25. math.h, signal.h, stdlib.h & limits.h.
  26.  
  27. Sincerely,
  28. Carlos E.Diaz
  29.  
  30.